Customize PIN keyboard
There are two ways to configure the pin display on Urovo readers. One way is through parameters that are already provided by the sdk and another is by adding under a mechanism also provided by the sdk the same parameters that urovo provides in its documentation.
This configuration is sent in the installer of the reader:
SDKUrovoReader.getInstaller(
pinKeyboardConfiguration = SDKPinKeyboardConfiguration.Builder().build(
SDKBasicPinKeyboardConfiguration(
SDKUrovoPinTexts(
"Enter pin",
"Enter pin",
"Ok",
"Cancel",
"Delete"
)
)
)
)
First we will explain the creation in the case where the basic configuration is sent.
This configuration is created with the help of the SDKBasicPinKeyboardConfiguration
class.
The texts that will appear on the screen must be sent to this class. This is done through the SDKUrovoPinTexts
class, it has: title, message, ok, cancelText, deleteText.
There are no more texts that can be customized.
Additionally you can send:
- textSize: List<Short> containing the size of the texts
- margins: List<Short> containing the margins
- backgroundColor: List<Int> containing the background colors
The order of the list corresponds to:
- 0 = Title
- 1 = Info
- 2 = Password
- 3 = Numbers
- 4 = Cancel
- 5 = Delete
- 6 = OK
Additionally from these basic parameters, all those provided by the urovo sdk can be added through the add function of the builder, the ones provided when creating this documentation are specified.
- numberText: array of the 10 texts that contains the keyboard texts.